home *** CD-ROM | disk | FTP | other *** search
- //---------------------------------------------------------------------------
- // Borland C++Builder
- // Copyright (c) 1987, 1998 Borland International Inc. All Rights Reserved.
- //---------------------------------------------------------------------------
- //---------------------------------------------------------------------------
- #ifndef auto2H
- #define auto2H
- //---------------------------------------------------------------------------
- #include "srvr_TLB.h"
-
- // The following define is utilized by the IDEs Code Manager to ensure that
- // your controls Library Identifier is kept up-to-date.
- // NOTE: Do not remove or modify this macro.
- //
- #define LIBID_EditServer LIBID_srvr
-
- class ATL_NO_VTABLE TEditServerImpl:
- AUTOOBJECT_IMPL(TEditServerImpl, EditServer, IEditServer)
- {
- public:
-
- // The COM MAP entries declares the interfaces your object exposes (through
- // QueryInterface). CComRootObjectEx::InternalQueryInterface only returns
- // pointers for interfaces in the COM map. VCL controls exposed as OCXes
- // have a minimum set of interfaces defined by the
- // VCL_CONTROL_COM_INTERFACE_ENTRIES macro. Add other interfaces supported
- // by your object with additional COM_INTERFACE_ENTRY[_xxx] macros.
- //
- BEGIN_COM_MAP(TEditServerImpl)
- AUTOOBJECT_COM_INTERFACE_ENTRIES(IEditServer)
- END_COM_MAP()
-
- // The following macro declares a 'static UpdateRegistry(..)' which is
- // used by ATL to register this object.
- //
- DECLARE_TYPED_COMSERVER_REGISTRY("srvr.EditServer")
-
- protected:
- STDMETHOD(Clear());
- STDMETHOD(get_EditNum(int* Value));
- STDMETHOD(get_EditStr(BSTR* Value));
- STDMETHOD(set_EditNum(int Value));
- STDMETHOD(set_EditStr(BSTR Value));
- STDMETHOD(SetThreeStr(BSTR s1, BSTR s2, BSTR s3, BSTR* result));
- };
- #endif
-